<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>JavaScript的数字</title>
    </head>
    <body>
        <script>
            var x=.3-.2;
            var y=.2-.1;
            alert("x="+x+";y="+y);
            alert(x==y);
            alert(x==.1);
            alert(y==.1);
        </script>
    </body>
</html>